﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ManageDesign.aspx.cs"
    Inherits="TemplateH4.Design.ManageDesign" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Trang Quản Lý Thiết Kế</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!--Thêm vào phần khung và menu-->
    <div class="extra-img"><img alt="extra-img" src="../images/MasterPage/extra-img.png" class="png"/></div>     
    <div id="nav">
        <ul>
            <li><a href="../Default.aspx">Home</a></li>
            <li><a href="Design.aspx">Thiết Kế</a></li>
            <li><a href="ManageDesign.aspx">Quản Lý Thiết Kế</a></li>
            <li><a href="HuongDanThietKe.aspx">Hướng Dẫn</a></li>
        </ul>
    </div>
    <!-- content -->
    <div id="content">
        <div class="section">
            <!-- box begin -->
            <div class="box">
                <div class="left-top-corner png">
                    <div class="right-top-corner png">
                        <div class="border-top png">
                        </div>
                    </div>
                </div>
                <div class="border-left png">
                    <div class="border-right png">
                        <div class="inside png">
                            <!--Thêm vào phần khung và menu-->
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                DataKeyNames="MaSanPhamThietKe" DataSourceID="LinqDataSource1" ForeColor="#333333"
                                GridLines="None" OnSelectedIndexChanged="GridView1_SelectedIndexChanged1" AllowPaging="True"
                                AllowSorting="True" Height="129px" Width="721px" Font-Size="15px">
                                <RowStyle BackColor="#EFF3FB" Height="40px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <Columns>
                                    <asp:BoundField DataField="MaSanPhamThietKe" HeaderText="ID" InsertVisible="False"
                                        ReadOnly="True" SortExpression="MaSanPhamThietKe" />
                                    <asp:BoundField DataField="MaSanPhamGoc" HeaderText="Mã Sản Phẩm Gốc" SortExpression="MaSanPhamGoc" />
                                    <asp:BoundField DataField="NgayThietKe" HeaderText="Thời Gian" SortExpression="NgayThietKe" />
                                    <asp:TemplateField HeaderText="Xem Thiết Kế">
                                        <ItemTemplate>
                                            <a href="Design.aspx?MaTK=<%#Eval("MaSanPhamThietKe")%>">Xem Chi Tiết</a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowSelectButton="True" />
                                </Columns>
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign="Center"
                                    VerticalAlign="Middle" Height="1px" />
                                <EditRowStyle BackColor="#2461BF" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                            <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="LinQ_DTO.EFashionDBDataContext"
                                TableName="shop_sanphamthietkes" EnableDelete="True" EnableInsert="True" 
                                EnableUpdate="True" Where="MaNguoiDung == @MaNguoiDung">
                                <WhereParameters>
                                    <asp:SessionParameter DbType="Guid" Name="MaNguoiDung" 
                                        SessionField="MaNguoiDung" />
                                </WhereParameters>
                            </asp:LinqDataSource>
                            <!-- Thêm phần khung -->
                        </div>
                    </div>
                </div>
                <div class="left-bot-corner png">
                    <div class="right-bot-corner png">
                        <div class="border-bot png">
                        </div>
                    </div>
                </div>
            </div>
            <!-- box end -->
</asp:Content>
